package com.zeng.sys.authmd.apimodule.vo;

import com.zeng.nicecore.validation.ValidGroup;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class RoleVo {

    //角色名称
    @NotEmpty(groups = ValidGroup.add.class, message = "角色名称不能为空")
    private String name;

    //详细信息 
    private String detailInfo;

    // 角色配置
    private String roleConfig;


    //'是否可用,1：可用，0不可用
    private Short available;

    private List<String> apiCodes;

    private List<String> menuCodes;


    private Integer version;

    private Short valid;

    private String code;

    private Integer id;

    private Date updateDate;

    private Date insertDate;
}